package ru.resumeService.service;

import ru.resumeService.model.Resume;

import java.sql.SQLException;
import java.util.Date;
import java.util.List;

public interface ResumeService {
    List<Resume> searchResume(String fieldName, String value);

    List<Resume> getResumesByField(String fieldName, String order, int from, int to);

    List<String> getHeaders() throws SQLException;

    int getCountOfResume();

    Resume getResumeById(int id);

    void updateResume(int id, String name, String phone, String email, Date date, String department,
                      String city, int age, String education, int experience, double salary, String skills, int status, String comments) throws SQLException;

    void deleteResume(int id) throws SQLException;
}
